MyPhysicsLab – Help and FAQ
- Why don't the simulations play in my browser?
Make sure that you have Java enabled in your browser. For Internet Explorer on Windows go to "Internet Options", click the Security Tab, and make sure that "Java permissions" are enabled. You also should enable "scripting of Java applets".
In addition, you may need to get Java software if you don't have Java, or have an old version.
- Why is the animation jerky?
Some browser and operating system combinations don't give enough time to the applet to allow for smooth animation. One possible solution is to download the Lab.jar file and then run the simulations directly outside of the browser. After downloading the Lab.jar file, just double-click it. If Java is installed, the simulations will start running. There is an additional menu item that lets you pick which simulation to run. (If double-clicking Lab.jar doesn't work try typing at your command line: java -jar Lab.jar). Another thing to check is that you have the latest Java software.
- How can I show the simulations to my class?
You can copy the applet onto your local computer hard disk. See the sections below on Displaying Simulations Off-line and Changing Size of Display.
- Clicking the buttons doesn't do anything.
For the buttons outside of the Java applet, make sure that "scripting of Java applets" is enabled in your browser security preferences.
- The math symbols don't appear.
These symbols: − θ π ω √ ∫ ∑ ⁄
should look like this: 
If the symbols don't appear, try changing the serif font or default font in your browser, by looking in tools or preferences. Some fonts don't have all these special symbols. In some cases, choosing a different size of font may also help. There may be other browser settings needed to enable these HTML 4.0 character entity references. More info on how to configure your browser and fonts is at Alan Wood's Unicode Site.
- How do you display math on the web?
Displaying math on web pages with HTML is challenging. There are many approaches. I have some notes on how to display math on the web that you can look at for ideas.
- Is source code available for the simulations?
Yes! Just scroll down on this page for information about getting source code.
Free Source Code
The Java source code for the MyPhysicsLab applet is available at
www.MyPhysicsLab.com/source/. You should be able to download individual files there by right-clicking on a file. You can also try accessing that directory by anonymous
ftp at
ftp://www.MyPhysicsLab.com/source/.
The source code is covered by the
GNU General Public License. Using the GNU GPL ensures that all
subsequent improved versions will be free software. Here
free means
freedom rather than "no cost".
I would like to hear from anyone downloading, using, or improving the source code.
Send me a note about what your interests are with the code. I would also appreciate if you could provide a link to
www.MyPhysicsLab.com if you use the source code on your website or at your school.
Simplified Source Code
A
simplified text-only version of the source code suitable for students to experiment with is available.
Displaying Simulations Off-line
Its easy to display the simulations when not connected to the internet. First
download the Lab.jar file. After downloading the
Lab.jar file, just double-click it. If Java is installed, the simulations will start running. There is an additional menu item that lets you pick which simulation to run.
If double-clicking
Lab.jar doesn't work (and you are sure that Java is installed) try typing at your command line:
java -jar Lab.jar
If you also want the web pages that go with the applet, you can download a copy of this website onto your computer for display off-line. It is accessible via anonymous
ftp. Here are the steps to take:
- Establish an ftp connection to ftp://www.myphysicslab.com.
- Copy the files Lab.jar (contains the Java applet) and stylesheet2.css (used by all the .html files)
- Copy whichever of the .html files you want.
- Copy the /images/ subdirectory if desired. The images are not used by the Java applet, they are only needed for images appearing in .html files.
- From within your browser, open the desired .html file on your hard disk.
Changing Size of Display
If you need a larger display to fill the screen for a presentation, you should follow the
instructions above to get a copy onto your local hard disk. If you are double-clicking the
Lab.jar file, then you can simply resize the window as desired.
If you have copied the
.html files, then use a text editor to modify the
.html file that shows the simulation of interest. The line to modify will be near the beginning and look something like this:
<applet code = "com.myphysicslab.simlab.Lab.class" name="Lab" archive="Lab.jar"
codebase="." width=500 height=300>
You can change the width and height to whatever you need. Then save the file and open it with your browser.